package dominion;

public class Tresure implements Value {

	public static final Tresure GOLD = new Tresure(3, CardTypes.Gold);
	public static final Tresure SILVER = new Tresure(2, CardTypes.Silver);
	public static final Tresure COPPER = new Tresure(1, CardTypes.Copper);

	int value = 0;
	CardTypes type;

	private Tresure(int value, CardTypes type) {
		this.value = value;
		this.type = type;
	}

	@Override
	public int value() {
		return this.value;
	}

	@Override
	public String toString() {
		return this.type.name();
	}

	@Override
	public CardTypes getType() {
		return this.type;
	}

}